package com.fengchao.dao;

import com.fengchao.model.CfiConcertCrowdfundingPayBack;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by wangnian on 2016/7/11.
 */
@Mapper
public interface CfiConcertCrowdfundingPayBackMapper {

    @Select("select * from cfi_concert_crowdfunding_pay_back where id=#{id}")
    CfiConcertCrowdfundingPayBack findByPayBackId(Integer payBackId);

    @Update("update cfi_concert_crowdfunding_pay_back set pay_back_sold_sum=#{payBackSoldSum} where id=#{payBackId}")
    Integer updatePayBackSoldSum(@Param("payBackId") Integer payBackId, @Param("payBackSoldSum") Integer payBackSoldSum);

}
